/**
 * 功能:TK_CONSIGNMENTS Dao类
 * 开发人员:chengd
 * 创建时间:2012/4/30 11:48:58
 */
package com.towker.frame.dao.sell;

import org.springframework.stereotype.Repository;
import com.towker.core.db.BaseDao;
import com.towker.frame.model.sell.Consignment;

@Repository
@SuppressWarnings("unchecked")
public class ConsignmentDao extends BaseDao<Consignment, Long>
{
	@Override
	public Class getEntityClass()
	{
		return Consignment.class;
	}
	public String getLastConsignmentCode() {
		return (String)getSqlSessionTemplate().selectOne(getIbatisMapperNamespace()+".getLastConsignmentCode", null);
	}
}